/*
 * @Author: 吴思浪
 * @Date: 2021-12-12 11:01:26
 * @LastEditors: 黄宇/Hyuishine
 * @LastEditTime: Thu May 25 2023 14:45:46
 * @Description: 
 * @Company: 3xData
 * @youWant: add you want
 */
import { getList, getFaultInfo, insertPlanAndConclusion, getAudit,responsibleContact } from '@/api/fault.js'


const fault = {
    state: {

    },
    mutations: {



    },
    actions: {
        get_list_falut ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                getList(obj, function (data) {
                    resolve(data)
                })
            })
        },

        get_faultInfo_falut ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                getFaultInfo(obj, function (data) {
                    resolve(data)
                })
            })
        },
        insert_planAnd_conclusion ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                insertPlanAndConclusion(obj, function (data) {
                    resolve(data)
                })
            })
        },
        get_audit ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                getAudit(obj, function (data) {
                    resolve(data)
                })
            })
        },

        responsibleContact ({ commit }, obj) {
            return new Promise((resolve, reject) => {
                responsibleContact(obj, function (data) {
                    resolve(data)
                })
            })
        },
    }
}

export default fault